<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Logout extends CI_Controller
{

    public function __construct()
    {
        parent::__construct();
    }

    public function index()
    {
        $this->input->set_cookie('token', '');

        $this->load->library('session');
        $this->session->sess_destroy();

        $this->load->helper('url');
        redirect('/login');
    }
}